FILE END

This command will return an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned.

  Syntax
Return Integer=FILE END(File Number)
  Parameters
File Number
Integer
The open file number to use

  Returns

Will return an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned

  Example Code
cls
open to read 1,"data.dat"
if file open(1)=1
while file end(1)=0
read string 1,a$
print "string= "+a$
endif
endwhile
close file 1
do
loop
end
  See also

FILE Commands Menu
Index